package updown.util;

import com.alibaba.ttl.TransmittableThreadLocal;
import updown.domain.TaskWrapper;

/**
 * <p>Title: updown.util </p>
 * <p>Description:updown: -  </p>
 *
 * @Author:jiangkaixin
 * @Date:2022/1/5
 * @Version: 1.0
 */
public class TaskWrapperContext{
    protected static TransmittableThreadLocal<TaskWrapper> context = new TransmittableThreadLocal<TaskWrapper>();

    public static TaskWrapper get(){
        TaskWrapper taskWrapper = context.get();
        return taskWrapper;
    }

    public static void set(TaskWrapper t){
        context.set(t);
    }
}
